﻿using Lcygcc.Infrastructure.Utility.IOC;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Autofac;
using Lcygcc.Infrastructure.Core;
using Lcygcc.Infrastructure.Repository;

namespace Lcygcc.Infrastructure.Core
{
    public class DependencyRegistrar : IDependencyRegistrar
    {
        public int Order
        {
            get
            {
                return 1;
            }
        }

        public void Register(ContainerBuilder builder, ITypeFinder typeFinder)
        {
            
            builder.RegisterType<BaseRepository>().As<IBaseRepository>();
            builder.RegisterType<TaskJobManager>().As<ITaskJobManager>(); 
        }
    }
}
